package gamesimulation;

public class game {

	int health;
	int wealth;
	int happiness;
	int luck;
	
	static stattrack stats;
	
	public static void main(String args[]){
		stats = new stattrack();
		
		questionset ourset=new questionset(21,stats);
		
		System.out.println("Welcome to the Game of Life");	
		System.out.println("CS405 Final Project");
		System.out.println("Group members: Lutz Leipold, Vincent Maglione, Nat Schaffner, Mike Tumblety, ");
		
		
		double ihp, ihl, iwe, ilu;
		ihp=java.lang.Math.random()*100;
		ihl=java.lang.Math.random()*100;
		iwe=java.lang.Math.random()*100;
		ilu=java.lang.Math.random()*100;
		stats.setInitial(ihp, ihl, iwe, ilu);
		//random starting scenario
		System.out.println("Your starting values are:\nHappiness\t\tHealth\t\tWealth\t\tLuck");
		System.out.print(ihp);
		System.out.print("\t\t");
		System.out.print(ihl);
		System.out.print("\t\t");
		System.out.print(iwe);
		System.out.print("\t\t");
		System.out.print(ilu);
		System.out.print("\n");
		
		
		ourset.load();
		ourset.nextquestion();
		ourset.nextquestion();
		//stage 2
		System.out.print("Stage 2\nYou have currently saved: $");
		//queston 3
		double sum=stats.getwealth();
		System.out.println(sum);
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		ourset.nextquestion();
		//should be out of questions here
		ourset.nextquestion();
		
		stats.showEndStats();
	}
}
